package com.csnf.mapper;

import com.csnf.pojo.Catogery;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper {

    @Select("select * from category")
    public List<Catogery> findAll();

    @Delete("delete from category where id=#{id}")
    public Integer deleteById(Integer id);
}
